Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop explicitly listing wheel as a build dependency #12728

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented May 24, 2024

setuptools' get_requires_for_build_wheel() hook already injects this dependency when building wheels is requested.

See also 64d8938.

cc @webknjaz

@hroncok
Copy link
Contributor Author

hroncok commented May 24, 2024

This should have no impact on users. I deem it a trivial change.

If a news entry is required anyway, what category should I use?

@hroncok hroncok marked this pull request as ready for review May 24, 2024 13:10
@webknjaz
Copy link
Member

Yeah, it won't have any impact. I wonder how I missed it earlier..

Not sure if a change note is needed — I proposed having more granular categories some time ago but that discussion is stuck.. I'll let the maintainers decide.

@webknjaz webknjaz added type: enhancement Improvements to functionality type: refactor Refactoring code type: maintenance Related to Development and Maintenance Processes C: PEP 517 impact Affected by PEP 517 processing C: build logic Stuff related to metadata generation / wheel generation labels May 24, 2024
@webknjaz
Copy link
Member

@uranusjr @pradyunsg this is an easy merge FYI

@pradyunsg
Copy link
Member

A feature changelog entry would be appropriate.

@hroncok
Copy link
Contributor Author

hroncok commented May 24, 2024

I can certainly add it, but this adds no feature.

@pradyunsg
Copy link
Member

None of the categories fit, so let's put it down as a feature since this is worth calling out in the changelog IMO.

setuptools' get_requires_for_build_wheel() hook already injects this dependency
when building wheels is requested.

See also 64d8938.
@hroncok
Copy link
Contributor Author

hroncok commented May 24, 2024

For the record, I don't think this is worth calling out in the changelog. It only impacts users who build sdists of pip.

Nevertheless, the changelog fragment has been added.

@webknjaz
Copy link
Member

FWIW, the audience is downstreams, which is separate from the end-users. Hence, my proposal @ #12555.

news/12728.feature.rst Outdated Show resolved Hide resolved
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@webknjaz webknjaz requested a review from pradyunsg May 29, 2024 14:13
@webknjaz
Copy link
Member

@pradyunsg easy merge plz?

@pfmoore
Copy link
Member

pfmoore commented Jun 13, 2024

I'll leave it to @pradyunsg as RM to decide if this is OK to go in 24.1 when we're already at beta 2.

``setuptools`` already injects this dependency in the ``get_requires_for_build_wheel()`` hook.
This makes no difference for users of ``pip``.
This makes no difference when building wheels of ``pip``.
This avoids an unnecessary dependency on ``wheel`` when building the source distribution of ``pip``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is not a user facing feature, I'd rename this news/12728.process.rst which is the best category we have now for this kind of change to the build process

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One could argue that it's a bugfix. But a "process"? This is a rather weird workaround.

@hroncok
Copy link
Contributor Author

hroncok commented Jun 23, 2024

For such a trivial change, the changelog discussion kinda makes me regret proposing it.

To whoever is merging this: feel free to adjust the changlog fragment however you desire.

@potiuk
Copy link
Contributor

potiuk commented Jun 23, 2024

For such a trivial change, the changelog discussion konda makes me regret proposing it.

To whoever is merging this: feel free to adjust the changlog fragment however you desire.

I don't think you should be angry or regret things. I think communicating a change is as important (or even more important) than the change itself. This is actually a very good discussion here, and various perspective have been presented, so @hroncok - if I were you I would be rather happy to see it and learn how open source maintainers think.

I think it's worth considering different maintainers perspectives on it, because they want to make sure that all kinds of users (pip end users but also - as mentioned earlier - downstream maintainers) - are aware of the change - and it's perfectly OK that different people have different opinions, so I would rather wait for @pradyunsg as RM to make final decision on it :).

@hroncok
Copy link
Contributor Author

hroncok commented Jun 23, 2024

I am not angry. It's just a bit frustrating.

@ichard26
Copy link
Member

I don't wish to spark any conflict here, but I do want to remind everyone that we're all volunteers. I can understand where @hroncok is coming from. I've been frustrated myself when one of my PRs is stuck in review hell, taking way longer than it should. I get that you're simply trying to offer another perspective @potiuk (which we can all agree is useful!) but saying someone shouldn't feel their anger right off the bat doesn't seem super nice (even though the second half of your message is cordial!).

Anyway, @hroncok apologies for the considerable back and forth on this PR. We've historically been burnt by various seemingly minor changes causing issues for downstream repackagers, so we are wary of making changes like this one. We appreciate the PR :)

@ichard26 ichard26 added this to the 24.2 milestone Jun 23, 2024
@pradyunsg pradyunsg merged commit 6b35bee into pypa:main Jul 9, 2024
12 checks passed
@hroncok hroncok deleted the nowheel branch July 10, 2024 05:17
@hroncok
Copy link
Contributor Author

hroncok commented Jul 10, 2024

Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bot:chronographer:provided C: build logic Stuff related to metadata generation / wheel generation C: PEP 517 impact Affected by PEP 517 processing type: enhancement Improvements to functionality type: maintenance Related to Development and Maintenance Processes type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants